<!DOCTYPE html>
<html lang="zh-CN"{:dark_css()}>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{:site('site_title')}</title>
    <meta name="keywords" content="{:site('site_kw')}">
    <meta name="description" content="{:site('site_desc')}">
    <link href="__STATIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/nprogress/nprogress.css" rel="stylesheet">
    <link href="__STATIC__/css/github-markdown.min.css" rel="stylesheet">
    <link href="__STATIC__/prism/prism.css" rel="stylesheet">
    <link href="__STATIC__/css/aphp-doc.css?v={:site_ver()}" rel="stylesheet">
    <link href="__STATIC__/css/print.css?v={:site_ver()}" media="print" rel="stylesheet">
    {php $doc_id=input('get.id',0,'intval')}
    <script>
        const GV = {
            doc_id : '{$doc_id}',
            book_id : '1',
            upload_api: "{:url('api/upload')}",
            base_href: "{:url('doc/read')}",
        }
    </script>
</head>
<body>
<div class="m-manual manual-mode-view manual-reader">
    <header class="navbar navbar-static-top manual-head transition">
        <div class="container-fluid">
            <div class="navbar-header pull-left manual-title">
                <span class="sidebarToggle" id="sidebarToggle"><i class="glyphicon glyphicon-align-justify"></i></span>
                <a data-href="{:url('doc/read')}" id="book-title">加载中...</a>
                <span class="book-ver">v1.0</span>
            </div>
            <div class="navbar-header pull-right manual-menu">
                <div class="doc-menu-item">
                    <a href="{:url('index/index')}" class="btn btn-link">
                        <i class="glyphicon glyphicon-home"></i> 首页
                    </a>
                    <a href="javascript:;" class="btn btn-link btn-theme">
                        <span class="tooltips sun" title="切换浅色模式" data-placement="bottom"><i class="glyphicon glyphicon-adjust"></i> 浅色</span>
                        <span class="tooltips moon" title="切换深色模式" data-placement="bottom"><i class="glyphicon glyphicon-adjust"></i> 深色</span>
                    </a>
                    {if !session('user.id'):}
                    <a href="{:url('user/login')}" class="btn btn-link">
                        <i class="glyphicon glyphicon-log-in"></i> 登录
                    </a>
                    {else:}
                    <a href="javascript:ajaxConfirm('{:url('user/logout')}','退出');" class="btn btn-link">
                        <i class="glyphicon glyphicon-log-out"></i> 退出
                    </a>
                    {/if}
                </div>
            </div>
        </div>
    </header>
    <div class="container-fluid manual-body">
        <div class="manual-right transition">
            <div class="manual-article">
                <div class="article-content">
                    <div class="help-block article-info">
                        <i class="glyphicon glyphicon-user"></i> <span id="author">无念</span>更新于<span class="updated">1秒前</span>
                        <span class="pull-right">
                            {php $prem_level=get_prem_level($doc_id, false)}
                            {if $prem_level>=2:}
                            <a data-href="{:url('doc/add')}" class="add-btn"><i class="glyphicon glyphicon-plus"></i> 新增</a>
                            <a data-href="{:url('doc/edit')}" class="act-btn"><i class="glyphicon glyphicon-edit"></i> 编辑</a>
                            {/if}
                            {if $prem_level>2:}
                            <a data-href="{:url('doc/del')}" class="del-btn"><i class="glyphicon glyphicon-trash"></i> 删除</a>
                            {/if}
                            <a data-href="{:url('doc/down')}" class="act-btn"><i class="glyphicon glyphicon-download-alt"></i> 下载</a>
                            <a href="javascript:window.print();"><i class="glyphicon glyphicon-print"></i> 打印</a>
                        </span>
                    </div>
                    <article class="article-body markdown-body" id="page-content">
                    </article>

                    <div class="copyright-statment help-block">
                        本文档由 <a href="//doc.aphp.top" target="_blank">AphpDoc</a> 构建，如对文档中项目进行关注与支持，请前往相关仓库。
                    </div>

                    <div class="row related-link">
                        <div class="col-xs-12 related-pre">
                            <span class="text-muted">上一篇:</span><a data-href="{:url('doc/read')}" id="prev-link">没有了</a>
                        </div>
                        <div class="col-xs-12 related-next">
                            <span class="text-muted">下一篇:</span><a data-href="{:url('doc/read')}" id="next-link">没有了</a>
                        </div>
                    </div>

                    <div class="jump-bars">
                        <ul>
                            <li class="visible-xs visible-sm bars-menu">
                                <a href="{:url('index/index')}" title="首页"><i class="glyphicon glyphicon-home"></i></a>
                            </li>
                            <li class="visible-xs visible-sm">
                                <a href="javascript:ajaxConfirm('{:url('api/clear')}','更新页面', 2);" title="更新"><i class="glyphicon glyphicon-refresh"></i></a>
                            </li>
                            <li class="book-menu visible-xs visible-sm">
                                <a href="javascript:;" title="菜单"><i class="glyphicon glyphicon-align-justify"></i></a>
                            </li>
                            <li class="book-theme visible-xs visible-sm">
                                <a href="javascript:;" title="样式"><i class="glyphicon glyphicon-adjust"></i></a>
                            </li>
                            <li>
                                <a href="javascript:;" class="view-backtop"><i class="glyphicon glyphicon-arrow-up" aria-hidden="true"></i></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="manual-left">
            <div class="article-search">
                <form id="searchForm" action="{:url('doc/search')}" method="post">
                    <div class="input-group">
                        <input type="hidden" name="book_id" value="1">
                        <input type="text" name="keyword" placeholder="搜索关键字..." autocomplete="off" class="form-control">
                        <span class="input-group-addon input-group-addon-clear"><i class="glyphicon glyphicon-remove"></i></span>
                        <span class="input-group-addon">
                            <button type="submit"><i class="glyphicon glyphicon-search"></i></button>
                        </span>
                    </div>
                </form>
                <div class="pull-right hidden-xs" id="catalogToggle">
                    <i class="glyphicon glyphicon-align-justify"></i>
                </div>
            </div>
            <div class="article-menu">
                <div class="article-menu-detail collapse-menu">
                    {php $tree=widget('common.book_dir')->get('', ['doc_id'=>$doc_id])}
                    {include file='doc/_dir_read.html'}
                </div>
                <div class="search-result">
                    <div class="search-empty" style="display: block;">
                        <i class="glyphicon glyphicon-search-plus" aria-hidden="true"></i>
                        <b class="text">暂无相关搜索结果！</b>
                    </div>
                    <ul class="search-list" id="searchList"></ul>
                </div>
            </div>
            <div class="m-copyright">
                <p>
                    本文档由 <a href="//doc.aphp.top" target="_blank">AphpDoc</a> 构建
                </p>
            </div>
        </div>
        <div class="manual-progress transition"><b class="progress-bar"></b></div>
    </div>
    <div class="manual-mask"></div>
</div>
<span class="article-toggle tooltips hidden-xs hidden-sm" title="展开/收起文章目录"><img alt="展开/收起文章目录" src="__STATIC__/img/toggle.png"/></span>

<div class="photo-viewer"></div>

<script src="__STATIC__/js/jquery-3.7.1.min.js"></script>
<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
<script src="__STATIC__/layer_mobile/layer.js"></script>
<script src="__STATIC__/js/aphp-1.1.js?v={:site_ver()}"></script>
<script src="__STATIC__/nprogress/nprogress.js"></script>
<script src="__STATIC__/js/jquery.highlight.js"></script>

<script src="__STATIC__/marked/marked.umd.min.js"></script>
<script src="__STATIC__/marked/marked-gfm-heading-id.min.js"></script>
<script src="__STATIC__/marked/marked_toc.js"></script>

<script src="__STATIC__/prism/prism.js" data-manual></script>
<script src="__STATIC__/js/clipboard.min.js"></script>

<script src="__STATIC__/js/doc_common.js"></script>
<script src="__STATIC__/js/doc_read.js"></script>
</body>
</html>